/************************************************************************
 * The code is owned by mainframer.cn and Shang Tao
 * Without aproval of mainframer.cn and Shang Tao, removing the copyright
 * infomation is regarded as invassion of proprietary copyright
 ***********************************************************************/
package com.mr.qa.bo;

import java.util.Date;


/**
 * Answer
 */

public class Answer extends BaseBO  implements java.io.Serializable {


    // Fields    

     private User mrIaskUser;
     private Question mrIaskQuestion;
     private String content;
     private String reference;
     private String file;
    private String fileName;
     private Date postDate;
     private String state;
     private Integer pollCount;
     private Boolean isAnonymous = false;
    private String anonymousUser;
    

    // Constructors

    /** default constructor */
    public Answer() {
    }

	/** minimal constructor */
    public Answer(String state) {
        this.state = state;
    }
    
    public User getMrIaskUser() {
        return this.mrIaskUser;
    }
    
    public void setMrIaskUser(User mrIaskUser) {
        this.mrIaskUser = mrIaskUser;
    }

    public Question getMrIaskQuestion() {
        return this.mrIaskQuestion;
    }
    
    public void setMrIaskQuestion(Question mrIaskQuestion) {
        this.mrIaskQuestion = mrIaskQuestion;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public String getReference() {
        return this.reference;
    }
    
    public void setReference(String reference) {
        if(reference != null)
            this.reference = reference.trim();
        else
            this.reference = "";
    }

    public String getFile() {
        return this.file;
    }
    
    public void setFile(String file) {
        if(file != null)
            this.file = file.trim();
        else
            this.file = "";
    }

    public Date getPostDate() {
        return this.postDate;
    }
    
    public void setPostDate(Date postDate) {
        this.postDate = postDate;
    }

    public String getState() {
        return this.state;
    }
    
    public void setState(String state) {
        this.state = state;
    }

    public Integer getPollCount() {
        return this.pollCount;
    }
    
    public void setPollCount(Integer pollCount) {
        this.pollCount = pollCount;
    }

    public Boolean getIsAnonymous() {
        return this.isAnonymous;
    }
    
    public void setIsAnonymous(Boolean isAnonymous) {
        this.isAnonymous = isAnonymous;
    }


    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }

public void setAnonymousUser(String anonymousUser)
{
    this.anonymousUser = anonymousUser;
}

public String getAnonymousUser()
{
    return anonymousUser;
}
}
